package com.wf.apicommons.entity.userManagement;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 用户信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("t_user_information")
public class UserInformation {
   @TableId(value = "id")
   private String  ID;
   @TableField(value="avatar_link",fill = FieldFill.INSERT)
   private String  avatarLink;
   private String  nickName;
   private String  password;
   private String  phoneNumber;
   @TableField(value="create_time",fill = FieldFill.INSERT)
   @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss", timezone = "GMT+8")
   private Date createTime;
   /**
    * 验证码
    */
   @TableField(exist=false)
   private String code;
}
